﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using UncleBobWebService.ServiceRequester;
using UncleBobApplicantWebService.ApplicantWebService;


namespace UncleBobApplicantWebService.Controllers
{
    public class ErrorController : Controller
    {
        //**************************************************
        //Display error view
        //**************************************************
        public ActionResult Error()
        {
            string error = TempData[SessionKeys.ERROR] as string;
            ViewData["Error"] = error;
            return View();
        }

        //**************************************************
        //Display Session Timeout view
        //**************************************************
        public ActionResult SessionTimeout()
        {
            return View();
        }

        //**************************************************
        //Form action handle
        //**************************************************        
        public ActionResult FormAction(FormCollection collection)
        {
            return RedirectToAction("Index", "Welcome");
        }
    }
}
